package com.sk.cardeal.entity;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by sk on 2018/1/22.
 */

public class ApplyDetails implements Parcelable {

    private String partId;
    private String count;
    private String name;
    private String stockNum;

    public String getPartId() {
        return partId;
    }

    public void setPartId(String partId) {
        this.partId = partId;
    }

    public String getCount() {
        return count;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStockNum() {
        return stockNum;
    }

    public void setStockNum(String stockNum) {
        this.stockNum = stockNum;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.partId);
        dest.writeString(this.count);
        dest.writeString(this.name);
        dest.writeString(this.stockNum);
    }

    public ApplyDetails() {
    }

    protected ApplyDetails(Parcel in) {
        this.partId = in.readString();
        this.count = in.readString();
        this.name = in.readString();
        this.stockNum = in.readString();
    }

    public static final Parcelable.Creator<ApplyDetails> CREATOR = new Parcelable.Creator<ApplyDetails>() {
        @Override
        public ApplyDetails createFromParcel(Parcel source) {
            return new ApplyDetails(source);
        }

        @Override
        public ApplyDetails[] newArray(int size) {
            return new ApplyDetails[size];
        }
    };
}
